import java.util.Scanner;

public class Test_1 {

    public static void main(String[] args) {
       //单分支
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数字：");
        int num1 = scanner.nextInt();
        System.out.println("请输入第二个数字：");
        int num2 = scanner.nextInt();
        System.out.println("请输入第三个数字：");
        int num3 = scanner.nextInt();
        //交换位置  让最后一个数值最大
        int temp =0;
        if(num1>num2){
            temp=num1;
            num1 =num2;
            num2 =temp;
         }
        if(num2>num3){
            temp = num2;
            num2 = num3;
            num3=temp;
        }
        System.out.println("最大的数字为："+num3);
    }
}

